package com.personnel_management.service.impl;

import com.personnel_management.dao.DepartDao;
import com.personnel_management.pojo.Depart;
import com.personnel_management.pojo.Staff;
import com.personnel_management.service.DepartService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class DepartServiceImpl implements DepartService {
    @Autowired
    private DepartDao departDao;
    @Override
    public Integer addDepart(Depart depart) {
        return departDao.addDepart(depart);
    }

    @Override
    public Integer deleteDepart(Integer id) {
        return departDao.deleteDepart(id);
    }

    @Override
    public Integer setDepart(Depart depart) {
        return departDao.setDepart(depart);
    }

    @Override
    public Depart seleteOne(Integer id) {
        return departDao.seleteOne(id);
    }

    @Override
    public List<Depart> selectDeparts(Depart depart) {
        return departDao.selectDeparts(depart);
    }

    @Override
    public List<Staff> selectStaffs(Integer id) {
        return departDao.selectStaffs(id);
    }
}
